.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 400px;
  max-width: 90%;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
}

.close-button {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.close-button:hover {
  color: #666;
}

.modal-body {
  padding: 20px;
  max-height: calc(90vh - 60px);
  overflow-y: auto;
}

.style-item {
  margin-bottom: 16px;
}

.style-item label {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.style-item input[type="number"],
.style-item input[type="text"],
.style-item select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.style-item input[type="color"] {
  width: 100%;
  height: 40px;
  padding: 2px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group input {
  flex: 1;
}

.input-group span {
  color: #666;
  font-size: 14px;
}

/* 新增的标签页样式 */
.tabs {
  display: flex;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  overflow-x: auto;
  white-space: nowrap;
}

.tab {
  padding: 12px 16px;
  cursor: pointer;
  border: none;
  background: none;
  color: #666;
  font-size: 14px;
  position: relative;
  transition: color 0.3s;
}

.tab:hover {
  color: #1890ff;
}

.tab.active {
  color: #1890ff;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
}

.tab-content {
  padding: 20px;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* 开关样式 */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1890ff;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* 分组样式 */
.setting-group {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.setting-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.setting-group-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
  font-weight: 500;
}

.axis-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.axis-button {
  flex: 1;
  padding: 8px 16px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.axis-button:hover {
  background-color: #e8e8e8;
}

.axis-button.active {
  background-color: #1890ff;
  color: white;
  border-color: #1890ff;
}

/* 错误消息样式 */
.error-message {
  color: #f44336;
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid #f44336;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 8px 0;
  font-size: 12px;
  text-align: center;
}